package com.xiaoshuidi.cloud.module.finance.controller.admin.finance.vo.flow;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Schema(description = "管理后台 - 账单勾核分页 Request VO")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FinanceMoneyFlowConfirmPageResult {
    private BigDecimal confirmed;
    private BigDecimal notConfirmed;

    @Schema(description = "数据", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<FinanceMoneyFlowRespVO> list;

    @Schema(description = "总量", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long total;

    public FinanceMoneyFlowConfirmPageResult(List<FinanceMoneyFlowRespVO> list, Long total) {
        this.list = list;
        this.total = total;
    }

    public FinanceMoneyFlowConfirmPageResult(Long total) {
        this.list = new ArrayList<>();
        this.total = total;
    }

}
